import { ArtistGenreId } from "@/types/artist-genre"
import { AlbumGenreId } from "@/types/album-genre"
import { RegionId, LanguageId } from "@/types/region-language"

// 排行榜列表响应示例
export const rankingsResponse = {
    success: true,
    data: [
        {
            id: "1",
            name: "热歌榜",
            type: "featured",
            cover: "/images/rankings/hot.jpg",
            description: "实时反映当下最热门歌曲",
            backgroundColor: "#e91e63", // 添加背景颜色
        },
        {
            id: "2",
            name: "新歌榜",
            type: "featured",
            cover: "/images/rankings/new.jpg",
            description: "最新上线的歌曲",
            backgroundColor: "#d81b60", // 添加背景颜色
        },
        {
            id: "3",
            name: "飙升榜",
            type: "featured",
            cover: "/images/rankings/rising.jpg",
            description: "播放量增长最快的歌曲",
            backgroundColor: "#8e24aa", // 添加背景颜色
        },
        {
            id: "4",
            name: "流行指数榜",
            type: "featured",
            cover: "/images/rankings/trending.jpg",
            description: "综合各平台数据的流行指数",
            backgroundColor: "#5c6bc0", // 添加背景颜色
        },
        {
            id: "5",
            name: "内地榜",
            type: "regional",
            cover: "/images/rankings/mainland.jpg",
            description: "内地最热门歌曲",
            backgroundColor: "#26a69a", // 添加背景颜色
        },
        {
            id: "6",
            name: "港台榜",
            type: "regional",
            cover: "/images/rankings/hktw.jpg",
            description: "港台最热门歌曲",
            backgroundColor: "#26c6da", // 添加背景颜色
        },
        {
            id: "7",
            name: "欧美榜",
            type: "regional",
            cover: "/images/rankings/western.jpg",
            description: "欧美最热门歌曲",
            backgroundColor: "#4db6ac", // 添加背景颜色
        },
        {
            id: "8",
            name: "韩国榜",
            type: "regional",
            cover: "/images/rankings/korea.jpg",
            description: "韩国最热门歌曲",
            backgroundColor: "#4fc3f7", // 添加背景颜色
        },
        {
            id: "9",
            name: "日本榜",
            type: "regional",
            cover: "/images/rankings/japan.jpg",
            description: "日本最热门歌曲",
            backgroundColor: "#29b6f6", // 添加背景颜色
        },
    ],
}

// 排行榜详情响应示例
export const rankingDetailResponse = {
    success: true,
    data: {
        id: "1",
        name: "热歌榜",
        cover: "/images/rankings/hot.jpg",
        description: "实时反映当下最热门歌曲",
        updateFrequency: "每日更新",
        updateTime: "2023-03-23 12:00:00",
        backgroundColor: "#e91e63", // 添加背景颜色
        songs: [
            {
                id: "101",
                title: "DRAMA",
                artists: "G-DRAGON (权志龙)",
                duration: 234,
                album: {
                    id: "201",
                    title: "DRAMA",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/101",
                rank: 1,
                lastRank: 3,
                hasMV: true,
            },
            {
                id: "102",
                title: "TOO BAD (feat. Anderson .Paak)",
                artists: "G-DRAGON (权志龙)",
                duration: 153,
                album: {
                    id: "201",
                    title: "DRAMA",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/102",
                rank: 2,
                lastRank: 1,
                hasMV: true,
            },
            {
                id: "103",
                title: "Hype Boy",
                artists: "NewJeans",
                duration: 180,
                album: {
                    id: "202",
                    title: "NewJeans 1st EP 'New Jeans'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/103",
                rank: 3,
                lastRank: 2,
                hasMV: true,
            },
            {
                id: "104",
                title: "Ditto",
                artists: "NewJeans",
                duration: 185,
                album: {
                    id: "203",
                    title: "NewJeans 'OMG'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/104",
                rank: 4,
                lastRank: 4,
                hasMV: true,
            },
            {
                id: "105",
                title: "Seven (feat. Latto)",
                artists: "Jung Kook",
                duration: 186,
                album: {
                    id: "204",
                    title: "Seven",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/105",
                rank: 5,
                lastRank: 5,
                hasMV: true,
            },
            {
                id: "106",
                title: "Super Shy",
                artists: "NewJeans",
                duration: 174,
                album: {
                    id: "205",
                    title: "NewJeans 2nd EP 'Get Up'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/106",
                rank: 6,
                lastRank: 7,
                hasMV: true,
            },
            {
                id: "107",
                title: "ETA",
                artists: "NewJeans",
                duration: 156,
                album: {
                    id: "205",
                    title: "NewJeans 2nd EP 'Get Up'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/107",
                rank: 7,
                lastRank: 6,
                hasMV: true,
            },
            {
                id: "108",
                title: "Cupid - Twin Ver.",
                artists: "FIFTY FIFTY",
                duration: 175,
                album: {
                    id: "206",
                    title: "The Beginning: Cupid",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/108",
                rank: 8,
                lastRank: 8,
                hasMV: true,
            },
            {
                id: "109",
                title: "OMG",
                artists: "NewJeans",
                duration: 215,
                album: {
                    id: "203",
                    title: "NewJeans 'OMG'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/109",
                rank: 9,
                lastRank: 9,
                hasMV: true,
            },
            {
                id: "110",
                title: "Attention",
                artists: "NewJeans",
                duration: 180,
                album: {
                    id: "202",
                    title: "NewJeans 1st EP 'New Jeans'",
                    cover: "/placeholder.svg",
                },
                cover: "/placeholder.svg",
                url: "/api/stream/110",
                rank: 10,
                lastRank: 10,
                hasMV: true,
            },
        ],
    },
}

// 歌单分类响应示例
export const playlistCategoriesResponse = {
    success: true,
    data: {
        categories: {
            "1": [
                { id: 1, name: "经典" },
                { id: 2, name: "怀旧" },
                { id: 3, name: "轻音乐" },
                { id: 4, name: "影视原声" },
                { id: 5, name: "ACG" },
            ],
            "2": [
                { id: 6, name: "情歌" },
                { id: 7, name: "城市" },
                { id: 8, name: "旅行" },
                { id: 9, name: "夜晚" },
                { id: 10, name: "清晨" },
            ],
            "3": [
                { id: 11, name: "学习" },
                { id: 12, name: "工作" },
                { id: 13, name: "运动" },
                { id: 14, name: "驾驶" },
                { id: 15, name: "放松" },
            ],
            "4": [
                { id: 16, name: "伤感" },
                { id: 17, name: "治愈" },
                { id: 18, name: "励志" },
                { id: 19, name: "甜蜜" },
                { id: 20, name: "思念" },
            ],
        },
        moreCategories: {
            "5": [
                { id: 21, name: "古典" },
                { id: 22, name: "爵士" },
                { id: 23, name: "蓝调" },
                { id: 24, name: "乡村" },
                { id: 25, name: "嘻哈" },
                { id: 26, name: "R&B" },
                { id: 27, name: "电子" },
                { id: 28, name: "世界音乐" },
            ],
        },
        categoryNames: {
            "0": "最近常用",
            "1": "热门",
            "2": "主题",
            "3": "场景",
            "4": "心情",
            "5": "其他",
        },
    },
}

// 专辑分类响应示例
export const albumGenresResponse = {
    success: true,
    data: {
        genres: [
            { id: 0, name: "全部" },
            { id: 1, name: "流行" },
            { id: 2, name: "摇滚" },
            { id: 3, name: "民谣" },
            { id: 4, name: "电子" },
            { id: 5, name: "嘻哈" },
            { id: 6, name: "R&B" },
        ],
    },
}

// 歌手分类响应示例
export const artistGenresResponse = {
    success: true,
    data: {
        genres: [
            { id: 0, name: "全部" },
            { id: 1, name: "流行" },
            { id: 2, name: "说唱" },
            { id: 3, name: "国风" },
            { id: 4, name: "摇滚" },
            { id: 5, name: "电子" },
        ],
    },
}

// 地区和语言响应示例
export const regionsAndLanguagesResponse = {
    success: true,
    data: {
        languages: [
            { id: 0, name: "全部" },
            { id: 1, name: "华语" },
            { id: 2, name: "欧美" },
            { id: 3, name: "日韩" },
            { id: 4, name: "其他" },
        ],
        regions: [
            { id: 0, name: "全部" },
            { id: 1, name: "内地" },
            { id: 2, name: "港台" },
            { id: 3, name: "欧美" },
            { id: 4, name: "韩国" },
            { id: 5, name: "日本" },
            { id: 6, name: "其他" },
        ],
    },
}

// 艺术家响应示例（包含地区和语言ID）
export const artistsResponse = {
    success: true,
    data: {
        items: [
            {
                id: "1",
                name: "周杰伦",
                avatar: "/placeholder.svg?height=300&width=300",
                description: "华语流行乐坛天王",
                followerCount: 10000000,
                albumCount: 14,
                songCount: 150,
                mvCount: 50,
                regionId: RegionId.MAINLAND, // 内地
                languageId: LanguageId.CHINESE, // 华语
                region: "内地",
                language: "华语",
                genreId: ArtistGenreId.POP, // 流行
                genre: "流行",
            },
            {
                id: "2",
                name: "Taylor Swift",
                avatar: "/placeholder.svg?height=300&width=300",
                description: "美国流行音乐女歌手",
                followerCount: 15000000,
                albumCount: 10,
                songCount: 120,
                mvCount: 45,
                regionId: RegionId.WESTERN, // 欧美
                languageId: LanguageId.WESTERN, // 欧美
                region: "欧美",
                language: "欧美",
                genreId: ArtistGenreId.POP, // 流行
                genre: "流行",
            },
        ],
        total: 2,
        page: 1,
        limit: 10,
    },
}

// 专辑响应示例（包含地区和语言ID）
export const albumsResponse = {
    success: true,
    data: {
        items: [
            {
                id: "1",
                title: "Jay",
                cover: "/placeholder.svg?height=300&width=300",
                artist: "周杰伦",
                artistId: "1",
                releaseDate: "2000-11-07",
                songCount: 10,
                description: "周杰伦首张专辑",
                regionId: RegionId.MAINLAND, // 内地
                languageId: LanguageId.CHINESE, // 华语
                region: "内地",
                language: "华语",
                genreId: AlbumGenreId.POP, // 流行
                genre: "流行",
            },
            {
                id: "2",
                title: "1989",
                cover: "/placeholder.svg?height=300&width=300",
                artist: "Taylor Swift",
                artistId: "2",
                releaseDate: "2014-10-27",
                songCount: 13,
                description: "Taylor Swift第五张录音室专辑",
                regionId: RegionId.WESTERN, // 欧美
                languageId: LanguageId.WESTERN, // 欧美
                region: "欧美",
                language: "欧美",
                genreId: AlbumGenreId.POP, // 流行
                genre: "流行",
            },
        ],
        total: 2,
        page: 1,
        limit: 10,
    },
}

// MV列表响应示例
export const mvsResponse = {
    success: true,
    data: {
        items: [
            {
                id: "1",
                title: "告白气球",
                artists: "周杰伦",
                artistId: "1",
                cover: "/placeholder.svg?height=300&width=300",
                url: "/videos/mv1.mp4",
                duration: 215,
                releaseDate: "2016-07-15",
                playCount: 10000000,
                likes: 500000,
                isLiked: false,
                description: "《告白气球》是周杰伦演唱的一首歌曲，收录于专辑《周杰伦的床边故事》中...",
                regionId: 1, // 内地
                versionId: 1, // MV
            },
            {
                id: "2",
                title: "Dynamite",
                artists: "BTS (防弹少年团)",
                artistId: "3",
                cover: "/placeholder.svg?height=300&width=300",
                url: "/videos/mv2.mp4",
                duration: 199,
                releaseDate: "2020-08-21",
                playCount: 15000000,
                likes: 750000,
                isLiked: true,
                description: "《Dynamite》是韩国男子组合防弹少年团发行的一首英语单曲...",
                regionId: 4, // 韩国
                versionId: 1, // MV
            },
            {
                id: "3",
                title: "Bad Guy (Live)",
                artists: "Billie Eilish",
                artistId: "4",
                cover: "/placeholder.svg?height=300&width=300",
                url: "/videos/mv3.mp4",
                duration: 194,
                releaseDate: "2019-03-29",
                playCount: 8000000,
                likes: 400000,
                isLiked: false,
                description: "Billie Eilish在格莱美颁奖典礼上的现场表演...",
                regionId: 3, // 欧美
                versionId: 2, // 现场
            },
            {
                id: "4",
                title: "光年之外",
                artists: "G.E.M. 邓紫棋",
                artistId: "5",
                cover: "/placeholder.svg?height=300&width=300",
                url: "/videos/mv4.mp4",
                duration: 235,
                releaseDate: "2016-12-30",
                playCount: 7500000,
                likes: 350000,
                isLiked: false,
                description: "《光年之外》是G.E.M. 邓紫棋演唱的歌曲，是电影《太空旅客》的中文主题曲...",
                regionId: 2, // 港台
                versionId: 1, // MV
            },
        ],
        total: 4,
        page: 1,
        limit: 10,
    },
}

